package com.zhu.gmallpublisher.utils;


import java.text.SimpleDateFormat;

/**
 * 日期获取与格式化
 */
public class GetDateUtil {

    /**
     * 获取当前处理日期
     * @return
     */
    public static int getCurrentTime() {
        long timeStamp = System.currentTimeMillis();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
        return Integer.parseInt(simpleDateFormat.format(timeStamp));
    }
}
